/* ***********************************************************************
 * Copyright (C) 1992-- 2016 中国南方航空股份有限公司.
 *
 * Created [2016-09-08 14:40:31] by FMS Team
 * ***********************************************************************
 *
 * mybaits-generator
 * ***********************************************************************
 */
package com.foreveross.law.system.domain;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
* <p>com.foreveross.law.system.domain.DataItem</p>
*
* @author changwu.liao email:changwu.liao(a)gmail.com
* @version 1.0
* @since 1.0
* @Modified by add modified description
* @purpose add this file description here
*/
public class DataItem implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias	
	public static final String TABLE_SQL_NAME = "DATA_ITEM";
	
	public static final String ALIAS_DATA_ITEM_ID = "dataItemId";
	public static final String ALIAS_DATA_TYPE_ID = "dataTypeId";
	public static final String ALIAS_ITEM_CODE = "itemCode";
	public static final String ALIAS_ITEM_NAME = "itemName";
	public static final String ALIAS_ITEM_REMARK = "itemRemark";
	public static final String ALIAS_EM_SORT = "emSort";
	public static final String ALIAS_CREATE_DATE = "createDate";
	public static final String ALIAS_CREATE_BY = "createBy";
	
	//the column is a primary key	
	public static final String PROP_KEY = "dataItemId";
	
	//fields START
	public static String PROP_REF="DataItem";
	public static String PROP_REF_DATA_ITEM_ID = "dataItemId";
	
	public static String PROP_REF_DATA_TYPE_ID = "dataTypeId";
	
	public static String PROP_REF_ITEM_CODE = "itemCode";
	
	public static String PROP_REF_ITEM_NAME = "itemName";
	
	public static String PROP_REF_ITEM_REMARK = "itemRemark";
	
	public static String PROP_REF_EM_SORT = "emSort";
	
	public static String PROP_REF_CREATE_DATE_BEGIN = "createDateBegin";
	public static String PROP_REF_CREATE_DATE_END = "createDateEnd";
	
	public static String PROP_REF_CREATE_BY = "createBy";
	
	//fields END
	
	//columns sql name START	
	public static String PROP_COLUMN_DATA_ITEM_ID = "DATA_ITEM_ID";
	public static String PROP_COLUMN_DATA_TYPE_ID = "DATA_TYPE_ID";
	public static String PROP_COLUMN_ITEM_CODE = "ITEM_CODE";
	public static String PROP_COLUMN_ITEM_NAME = "ITEM_NAME";
	public static String PROP_COLUMN_ITEM_REMARK = "ITEM_REMARK";
	public static String PROP_COLUMN_EM_SORT = "EM_SORT";
	public static String PROP_COLUMN_CREATE_DATE = "CREATE_DATE";
	public static String PROP_COLUMN_CREATE_BY = "CREATE_BY";
	//columns sql name END
		
	//columns START
	private java.lang.String dataItemId;
	private java.lang.String dataTypeId;
	private java.lang.String itemCode;
	private java.lang.String itemName;
	private java.lang.String itemRemark;
	private java.lang.Integer emSort;
	private java.util.Date createDate;
	private java.lang.String createBy;
	//columns END

	public DataItem(){
	}

	public DataItem(
		java.lang.String dataItemId
	){
		this.dataItemId = dataItemId;
	}

	public void setDataItemId(java.lang.String value) {
		this.dataItemId = value;
	}
	
	public java.lang.String getDataItemId() {
		return this.dataItemId;
	}
	public void setDataTypeId(java.lang.String value) {
		this.dataTypeId = value;
	}
	
	public java.lang.String getDataTypeId() {
		return this.dataTypeId;
	}
	public void setItemCode(java.lang.String value) {
		this.itemCode = value;
	}
	
	public java.lang.String getItemCode() {
		return this.itemCode;
	}
	public void setItemName(java.lang.String value) {
		this.itemName = value;
	}
	
	public java.lang.String getItemName() {
		return this.itemName;
	}
	public void setItemRemark(java.lang.String value) {
		this.itemRemark = value;
	}
	
	public java.lang.String getItemRemark() {
		return this.itemRemark;
	}
	public void setEmSort(java.lang.Integer value) {
		this.emSort = value;
	}
	
	public java.lang.Integer getEmSort() {
		return this.emSort;
	}
	
	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}
	
	public java.util.Date getCreateDate() {
		return this.createDate;
	}
	public void setCreateBy(java.lang.String value) {
		this.createBy = value;
	}
	
	public java.lang.String getCreateBy() {
		return this.createBy;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("DataItemId",getDataItemId())
			.append("DataTypeId",getDataTypeId())
			.append("ItemCode",getItemCode())
			.append("ItemName",getItemName())
			.append("ItemRemark",getItemRemark())
			.append("EmSort",getEmSort())
			.append("CreateDate",getCreateDate())
			.append("CreateBy",getCreateBy())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getDataItemId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof DataItem == false) return false;
		if(this == obj) return true;
		DataItem other = (DataItem)obj;
		return new EqualsBuilder()
			.append(getDataItemId(),other.getDataItemId())
			.isEquals();
	}
}

